package com.csu.jpetstore_reconfiguration_back.service;

import com.csu.jpetstore_reconfiguration_back.common.CommonResponse;
import com.csu.jpetstore_reconfiguration_back.domain.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
* @author 朱嘉辉
* @description 针对表【t_category】的数据库操作Service
* @createDate 2024-04-13 20:26:20
*/
public interface CategoryService extends IService<Category> {
    //获取所有分类
    CommonResponse<List<Category>> getAllCategory();
    //获取单个分类
    CommonResponse<Category> getCategory(String categoryId);
    //添加分类
    CommonResponse<Category> addCategory(Category category);
    //修改分类
    CommonResponse<Category> updateCategory(String categoryId,Category category);
    //删除分类
    CommonResponse<Category> deleteCategory(String categoryId);
}
